package com.hyg.hometown.service;

import com.hyg.hometown.model.Role;
import com.hyg.hometown.model.User;
import org.apache.shiro.authc.UsernamePasswordToken;

import java.util.Map;

/**
 * 用户定义接口
 */
public interface UserService {
    User getUserByUserName(String userName);

    User addUser(Map<String,Object> map);

    Role addRole(Map<String,Object> map);

    void addRedisUserInfo(String userName,UsernamePasswordToken usernamePasswordToken);
}
